<?php
  require_once "__header__";
  LogManager::setLogs("REG00100 - Start");
  
  $user = new User();
  $user->username = $_POST["username"];
  $user->password = $_POST["password"];
  $user->fname = $_POST["fname"];
  $user->lname = $_POST["lname"];
  $user->email = $_POST["email"];
  $user->mobile = $_POST["mobile"];
  
  LogManager::setLogs("REG00100 - Connect Database");
  echo json_encode(array("return"=>UserManager::reg($user)));
  LogManager::setLogs("REG00100 - End");
?>